﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;

namespace StudentManage.Web.Admin.SelectInfo
{
    public partial class SelectDept : System.Web.UI.UserControl
    {
        [PersistenceMode(PersistenceMode.InnerDefaultProperty), Bindable(true), Localizable(true)]
        [BrowsableAttribute(true)]
        [DescriptionAttribute("选择的部门ID 如果没有选默认为：空")]
        public string DeptID
        {
            get { return this.HidDeptID.Value;}
            set { this.HidDeptID.Value = value.ToString(); }
        }

        [PersistenceMode(PersistenceMode.InnerDefaultProperty), Bindable(true), Localizable(true)]
        [BrowsableAttribute(true)]
        [DescriptionAttribute("选择的用户名 如果没有选默认为:空字符串")]
        public string DeptName
        {
            get {return this.HidDeptName.Value.ToString();}
            set 
            { 
                this.HidDeptName.Value = value.ToString();
                this.txtDeptName.Text = value.ToString();    
            }

        }

        private string _dialogTitle = "选择部门";
        [PersistenceMode(PersistenceMode.InnerDefaultProperty), Bindable(true), Localizable(true)]
        [BrowsableAttribute(true)]
        [DescriptionAttribute("获取或设置 弹出窗体的Title名称")]
        public string DialogTitle
        {
            get { return _dialogTitle; }
            set { _dialogTitle = value; }
        }

        private int _isRadio;
        [PersistenceMode(PersistenceMode.InnerDefaultProperty), Bindable(true), Localizable(true)]
        [BrowsableAttribute(true)]
        [DescriptionAttribute("是否单选(1:是,0否)")]
        public int IsRadio
        {
            get { return _isRadio; }
            set { _isRadio = value; }
        }

        [PersistenceMode(PersistenceMode.InnerDefaultProperty), Bindable(true), Localizable(true)]
        [BrowsableAttribute(true)]
        [DescriptionAttribute("选择空间ID，避免ID冲突")]
        public string UC_ID{get;set;}


        private string _isSelectDept = "1";//默认是
        [PersistenceMode(PersistenceMode.InnerDefaultProperty), Bindable(true), Localizable(true)]
        [BrowsableAttribute(true)]
        [DescriptionAttribute("判断是否选择部门")]
        public string IsSelectDept
        {
            get { return _isSelectDept; }
            set { _isSelectDept = value; }
        }

        private string _isMdalDialog="0";
        [PersistenceMode(PersistenceMode.InnerDefaultProperty), Bindable(true), Localizable(true)]
        [BrowsableAttribute(true)]
        [DescriptionAttribute("判断是否已模态窗体形式打开")]
        public string IsMdalDialog
        {
            get { return _isMdalDialog; }
            set { _isMdalDialog = value; }
        }

        private string _isSelectBJ="0";
        [PersistenceMode(PersistenceMode.InnerDefaultProperty), Bindable(true), Localizable(true)]
        [BrowsableAttribute(true)]
        [DescriptionAttribute("判断是否为选择班级")]
        public string IsSelectBJ
        {
            get { return _isSelectBJ; }
            set { _isSelectBJ = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
               
        }
    }
}